package com.joseph.websocket.util;

public enum CmdEnum {

    //聊天消息 文本消息、图片、语音、卡片、
    //控制消息 ack、通知、心跳

    MESSAGE(0, "消息"),
    HEART(1, "心跳"),
    ACK(2,"消息确认"),
    BIZ(3, "业务"),
    LIMIT(-1, "消息限流");

    private int code;
    private String desc;

    CmdEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
